package cn.maihe.elg.operation.centers.quanzhou.enums;

/**
 * @Description 泉州中心响应码枚举
 * @Author xxx
 * @Date 2025/08/31
 */
public enum QuanzhouRespCodeEnum {
    
    SUCCESS("1", "成功"),
    FAILURE("0", "失败"),
    PARAM_ERROR("0", "参数错误"),
    SIGN_ERROR("0", "签名验证失败"),
    ENCRYPT_ERROR("0", "加密解密失败"),
    SYSTEM_ERROR("0", "系统异常");
    
    private String code;
    private String desc;
    
    QuanzhouRespCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    
    public String getCode() {
        return code;
    }
    
    public String getDesc() {
        return desc;
    }
    
    public boolean isSuccess() {
        return SUCCESS.equals(this);
    }
    
    public boolean isFailure() {
        return !isSuccess();
    }
    
    /**
     * 获取消息描述
     * @return 消息描述
     */
    public String getMessage() {
        return this.desc;
    }
}